package com.navi.loaddata.core.oracleEntity.cell1;

import javax.persistence.*;

/**
 * Created by ghost on 2018/3/25.
 */
@Entity
@Table(name = "ETL_CELL_PARAM_V", schema = "EDALDR", catalog = "")
@IdClass(EtlCellParamVPK.class)
public class EtlCellParamV {
    private String paramCollection;
    private String paramName;
    private String paramCollectionGroup;
    private String paramGroup;

    @Id
    @Column(name = "PARAM_COLLECTION")
    public String getParamCollection() {
        return paramCollection;
    }

    public void setParamCollection(String paramCollection) {
        this.paramCollection = paramCollection;
    }

    @Id
    @Column(name = "PARAM_NAME")
    public String getParamName() {
        return paramName;
    }

    public void setParamName(String paramName) {
        this.paramName = paramName;
    }

    @Basic
    @Column(name = "PARAM_COLLECTION_GROUP")
    public String getParamCollectionGroup() {
        return paramCollectionGroup;
    }

    public void setParamCollectionGroup(String paramCollectionGroup) {
        this.paramCollectionGroup = paramCollectionGroup;
    }

    @Basic
    @Column(name = "PARAM_GROUP")
    public String getParamGroup() {
        return paramGroup;
    }

    public void setParamGroup(String paramGroup) {
        this.paramGroup = paramGroup;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        EtlCellParamV that = (EtlCellParamV) o;

        if (paramCollection != null ? !paramCollection.equals(that.paramCollection) : that.paramCollection != null)
            return false;
        if (paramName != null ? !paramName.equals(that.paramName) : that.paramName != null) return false;
        if (paramCollectionGroup != null ? !paramCollectionGroup.equals(that.paramCollectionGroup) : that.paramCollectionGroup != null)
            return false;
        if (paramGroup != null ? !paramGroup.equals(that.paramGroup) : that.paramGroup != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = paramCollection != null ? paramCollection.hashCode() : 0;
        result = 31 * result + (paramName != null ? paramName.hashCode() : 0);
        result = 31 * result + (paramCollectionGroup != null ? paramCollectionGroup.hashCode() : 0);
        result = 31 * result + (paramGroup != null ? paramGroup.hashCode() : 0);
        return result;
    }
}
